﻿<!DOCTYPE html>


<html>


<head>
	<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">

	<link rel="shortcut icon" type="image/png" href="../assets/logo/logo.png"/>
	<link rel="stylesheet" href="styles.css">

	<script type="importmap">
	  {
		"imports": {
			"three": "https://cdn.jsdelivr.net/npm/three@0.180.0/build/three.webgpu.min.js",
			"three/webgpu": "https://cdn.jsdelivr.net/npm/three@0.180.0/build/three.webgpu.min.js",
			"three/tsl": "https://cdn.jsdelivr.net/npm/three@0.180.0/build/three.tsl.min.js",
			"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.180.0/examples/jsm/",
			"tsl-textures": "../dist/tsl-textures.min.js"
		}
	  }
	</script>
</head>


<body>

	<script type="module">

import { install, params, USE_HEAD } from "./online.js";
import { darthMaul } from "tsl-textures";

var gui = install( darthMaul, USE_HEAD );

gui.add( params, 'scale' )
	.min( 0 ).max( 4 )
	.name( 'Mask <right>scale</right>' )
	.$input.classList.add( 'top' );

gui.add( params.shift, 'y' )
	.min( -40 ).max( 40 )
	.name( '<right>vertical</right>' );

gui.add( params.shift, 'z' )
	.min( -4 ).max( 4 )
	.name( '<right>variation</right>' );

gui.add( params, 'complexity' )
	.min( 0 ).max( 1 )
	.name( '<right>complexity</right>' )
	.$input.classList.add( 'bottom' );

gui.add( params, 'angle' )
	.min( 0 ).max( 90 )
	.name( 'Back <right>angle</right>' )
	.$input.classList.add( 'top' );

gui.add( params, 'distance' )
	.min( -3 ).max( 3 )
	.name( '<right>distance</right>' )
	.$input.classList.add( 'bottom' );

gui.addColor( params, 'color' )
	.name( 'Color <right>main</right>' )
	.$text.classList.add( 'top' );

gui.addColor( params, 'background' )
	.name( '<right>background</right>' );

gui.add( params, 'balance' )
	.min( -2 ).max( 2 )
	.name( '<right>balance</right>' )
	.$input.classList.add( 'bottom' );

	</script>
</body>
</html>